import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './utils/style/index.less'
import Layout from './components/vue-route-transition/layout'
Vue.component(Layout.name, Layout) //引用布局组件

import { Button, Field, Dialog, Toast, Icon, Lazyload } from 'vant'
Vue.use(Button)
Vue.use(Field)
Vue.use(Dialog)
Vue.use(Toast)
Vue.use(Icon)
Vue.use(Lazyload)
Toast.setDefaultOptions('loading', { forbidClick: true, duration: 0 }) // 将所有 loading Toast 设置为背景不可点击
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
